package com.peng.pojo;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Date;
import java.util.Objects;

@Table(name = "tb_sign_in", schema = "springboot-tuofu", catalog = "")
public class SignIn implements Serializable {
    private int id;
    private Date signTime;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "sign_time")
    public Date getSignTime() {
        return signTime;
    }

    public void setSignTime(Date signTime) {
        this.signTime = signTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SignIn signIn = (SignIn) o;
        return id == signIn.id &&
                Objects.equals(signTime, signIn.signTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, signTime);
    }
}
